<!DOCTYPE html>
<script src="/js-test-resources/js-test.js"></script>
<script>
description('Construct a WebSocket in a detached frame.');

window.jsTestIsAsync = true;

function detachIframe()
{
    var testIframe = document.getElementById('testIframe');
    testIframe.parentNode.removeChild(testIframe);
}

function done()
{
    finishJSTest();
}
</script>
<iframe src="resources/construct-in-detached-frame.html" id="testIframe"></iframe>
